<!--/*--><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>XCenter Administrator's Control Panel</title>
    <link id="mastercss" rel="stylesheet" href="images/style.css" type="text/css" media="screen"/>
    <script src="include/js/common.js" type="text/javascript"></script>
</head>
<body><!--*/-->
<!--{&header,${title!},内容管理&nbsp;&raquo;&nbsp;分类管理&nbsp;&raquo;&nbsp;编辑分类}-->
<!--{!#system,common}-->
<div id="newslisttab">
    <ul>
        <li style="float:right" class="active"><a>编辑分类</a></li>
        <li style="float:right"><a href="#{cms/category}#">管理分类</a></li>
    </ul>
</div>
<form method="post" action="#{/cms/editcategory/${pid}/${category[catid]}}#" enctype="multipart/form-data">
    <table cellspacing="0" cellpadding="0" width="100%" class="maintable">
        <tbody id='tabs0'>
        <tr>
            <th width='30%'><span class="sred">*</span> 上级分类</th>
            <td>
                ${cList}
            </td>
        </tr>
        <tr>
            <th>绑定模型</th>
            <td>${modelname}</td>
        </tr>
        <tr>
            <th><span class="sred">*</span> 分类名称</th>
            <td><input name='category[catname]' type='text' value="${category[catname]}" id='catname' size='40' class="txt"></td>
        </tr>
        <tr>
            <th>分类介绍</th>
            <td><textarea name='category[description]' id='description' style="width:90%;height:50px">${category[description]}</textarea></td>
        </tr>
        <tr>
            <th width='30%'>允许上传附件的类型</th>
            <td><input type="text" name="category[upload_allowext]" value="${category[upload_allowext]}" class="txt"  size='40'></td>
        </tr>
        <tr>
            <th width='30%'>允许上传文件的大小</th>
            <td><input type="text" name="category[upload_maxsize]" class="txt" value="${category[upload_maxsize]}" size='15' maxlength='10'>
                Bytes
            </td>
        </tr>
        <tr>
            <th width='30%'>是否启用缩略图</th>
            <td><label><input type="radio" name="setting[thumb_enable]" value="1" xtc="$category['thumb_enable']==1">是</label>
                <label><input type="radio" name="setting[thumb_enable]" value="0" xtc="$category['thumb_enable']==0">否</label></td>
        </tr>
        <tr>
            <th width='30%'>缩略图大小</th>
            <td><input name='category[thumb_width]' type='text' id='thumb_width' value="${category[thumb_width]}"
                       size='5' maxlength='5' class="txt"> X
                <input name='category[thumb_height]' type='text' id='thumb_height'
                                                                    value="${category[thumb_height]}" size='5' maxlength='5' class="txt"> px
            </td>
        </tr>
        <tr>
            <th width='30%'>是否启用水印</th>
            <td><label><input type="radio" name="category[watermark_enable]"
                              value="1"  xtc="$category['watermark_enable']==1"> 是</label>
                <label><input type="radio" name="setting[watermark_enable]"
                              value="0"  xtc="$category['watermark_enable']==0"> 否</label> <a href="#{cms/model}#">水印设置</a>
            </td>
        </tr>
        </tbody>
    </table>

    <div class="buttons">
        <input type="submit" name="submit" value="{!common_submit}" class="submit">
    </div>

</form>
<!--{&footer}-->
<!--/*-->
</body>
</html><!--*/-->